import { Boolean, Code, CreateDate, Digdit, Entity, Jsonb, PrimaryUuid, UpdateDate } from "@sker/core";

@Entity({
    name: 'sys_log'
})
export class SysLog {
    @PrimaryUuid({
        primaryKeyConstraintName: "PK_SYS_LOG_ID"
    })
    id: string;

    @Code({ length: 50 })
    type: string;

    @Code({ length: 50 })
    level: string;

    @Jsonb({ nullable: true })
    body: any;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;
}